package com.wellgoon.test.util;

import java.lang.reflect.Constructor;

/**
 * @Author: Rocky
 * @Date: 2023/5/4
 */
public class FanShe {
    public static void main(String[] args) throws Exception {
        Class c = Class.forName("com.wellgoon.test.util.Student");

        Constructor[] constructors = c.getDeclaredConstructors();

        for (Constructor cc :
                constructors) {
            System.out.println(cc);
        }
    }
}

class Student{
    private String name;
    private int age;

    public Student() {
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Student(String name) {
        this.name = name;
    }
}
